<?php if(isset($error)) echo '<script type="text/javascript">alert("'.$error.'");</script>';?>
<div class="portlet-body">
	<div class="row-fluid">

		<div class="span12 responsive" data-tablet="span12"
			data-desktop="span12">

			<div class="dashboard-stat green">
				<div class="details">

					<div class="number"><?php echo $nilai;?></div>

				</div>
				<a class="more" href="#"> Skor total <i
					class="m-icon-swapright m-icon-white"></i>
				</a>
			</div>
		</div>
	</div>


	<!--mulai tabelnya disini -->
	<div class="row-fluid">
		<div class="portlet-body">
			<table class="table table-bordered table-hover">
				<thead>
					<tr>
						<th>Soal</th>
						<th>Jawaban</th>
						<th class="hidden-phone">Status</th>

					</tr>
				</thead>
				<tbody>
				<?php foreach ($soal as $row){?>
					<tr>
						<td><?php echo $row->so_desc;?></td>
						<td><?php echo isset($jawaban[$row->so_id])?$jawaban[$row->so_id]['desc']:'';?></td>
						<td class="hidden-phone">
							<?php 
								$status = '<span class="label label-warning">Salah</span>';
								if(isset($jawaban[$row->so_id]) && $jawaban[$row->so_id]['stat'] == '1')
									$status = '<span class="label label-success">Benar</span>';
								echo $status;
							?>
						</td>
					</tr>
				</tbody>
				<?php }?>
			</table>
		</div>
	</div>

	<div class="form-actions">
		<a href="<?php echo base_url().$return;?>" class="btn grey">Kembali</a>
	</div>
</div>
